package com.api.shopapi.service;

import com.api.shopapi.entity.DeviceXiaoLe;
import com.api.shopapi.entity.dto.DeviceXiaoLeDTO;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeviceXiaoLeService {

    int insert(DeviceXiaoLe deviceXiaoLe);

    int update(DeviceXiaoLe deviceXiaoLe);

    DeviceXiaoLe getByDeviceXiaoLeCode(String deviceXiaoLeCode);

    DeviceXiaoLe getByUserCode(String userCode);

    DeviceXiaoLe getBySn(String sn);

    int deleteByUserCode(String userCode);

    DeviceXiaoLe getByClientId(String cid);


    List<DeviceXiaoLeDTO> getListByGovernmentCode(String governmentCode);

    PageInfo<DeviceXiaoLeDTO> getPage(int pageIndex,int pageSize,String phone,String sn);
}
